<?php

	include_once 'includes/configuration.php';
	mysql_connect($db_host, $db_user, $db_pass);
	mysql_select_db($db_name);

	$sql	= "SELECT `config_key` AS `key`, `config_value` AS `value` FROM `". $db_prefix ."config` ORDER BY `key` ASC;";
	$result	= mysql_query($sql) or die(mysql_error());

	echo '<h1>Configuration Data</h1>';
	echo '<table border="1" cellpadding="5">';
	while($row = mysql_fetch_assoc($result)) {
	echo '<tr>';
	echo '<td><strong>'. $row['key'] .'</strong></td>';
	echo '<td>'. nl2br(htmlentities($row['value'])) .'</td>';
	echo '</tr>';
	}
	echo '</table>';

?>